<template>
  <v-layout type="main">
    <div class="ctn">
      <div class="title">详情</div>
      <div class="msg_item">
        <span class="key">
          操作时间：
        </span>
        <span class="val">
          {{ msgData.update_time }}
        </span>
      </div>
      <div class="msg_item">
        <span class="key">
          说明：
        </span>
        <span class="val">
          {{ msgData.description }}
        </span>
      </div>
      <div class="msg_item">
        <span class="key">
          结果：
        </span>
        <span class="val">
          {{ msgData.result }}
        </span>
      </div>
      <div class="msg_item">
        <span class="key">
          地址：
        </span>
        <span class="val">
          {{ msgData.url }}
        </span>
      </div>
      <div class="msg_item">
        <span class="key">
          uri：
        </span>
        <span class="val">
          {{ msgData.uri }}
        </span>
      </div>
      <div class="msg_item">
        <span class="key">
          参数：
        </span>
        <span class="val">
          {{ msgData.parameter }}
        </span>
      </div>
    </div>
  </v-layout>
</template>

<script>

import { getnoeOperateLog } from "../../api/operateLog";

export default {
  data() {
    return {
      msgData: {}
    };
  },
  async created() {
    this.getAlldataById()
  },
  methods: {
    async getAlldataById() {
      let res = await getnoeOperateLog({ id: this.$route.query.id })
      this.msgData = res.data
      console.log("详情", res)
    }
  },
}
</script>
<style lang="less" scoped>
.ctn {
  background: #282D40;
  padding: 40px 80px;
  border-radius: 8px;
}

.msg_item {
  border-bottom: 1px solid rgba(#9AAFF9, 0.23);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 8% 95%;

  .key {
    width: 100px;
    font-size: 14px;
    display: flex;
    align-items: center;
  }

  .val {
    display: flex;
    align-items: center;
    padding: 20px 0;
  }
}

.title {
  font-size: 18px;
  font-weight: bolder;
  margin-bottom: 20px;
}
</style>
